import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import http from './utils/http.js'
import { deepCopy } from './utils'
import VueQrcode from '@chenfengyuan/vue-qrcode';
import SvgIcon from "./components/SvgIcon.vue";
import 'virtual:svg-icons-register';

const app = createApp(App).use(router).use(ElementPlus,{locale: zhCn,})
app.config.globalProperties.$http = http
app.config.globalProperties.$deepCopy = deepCopy
app.component(VueQrcode.name, VueQrcode);
app.component("SvgIcon", SvgIcon);
app.mount('#app')